﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Team6_Algorithms.Filters;
//written by  Dylan Snel
namespace VisionApplication
{
    class NewMedian: VisionAlgorithm
    {
        
        public NewMedian(String name, string[] required) : base(name,required) {}

        public override System.Drawing.Bitmap DoAlgorithm(System.Drawing.Bitmap sourceImage, Object obj)
        {
            Bitmap returnImage = new Bitmap(sourceImage);

            Median.applyFilter(returnImage, settings.Size);
            this.Image = returnImage;
            return returnImage;
        }
        
    
    }
}